(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  ["pages/wanlshop/index"], {
    "30c0": function (e, n, a) {
      "use strict";
      (function (e) {
        Object.defineProperty(n, "__esModule", {
          value: !0
        }), n.default = void 0;
        var t = a("2f62");

        function o(e, n) {
          var a = Object.keys(e);
          if (Object.getOwnPropertySymbols) {
            var t = Object.getOwnPropertySymbols(e);
            n && (t = t.filter((function (n) {
              return Object.getOwnPropertyDescriptor(e, n).enumerable
            }))), a.push.apply(a, t)
          }
          return a
        }

        function r(e) {
          for (var n = 1; n < arguments.length; n++) {
            var a = null != arguments[n] ? arguments[n] : {};
            n % 2 ? o(Object(a), !0).forEach((function (n) {
              l(e, n, a[n])
            })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(a)) : o(Object(a)).forEach((function (n) {
              Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(a, n))
            }))
          }
          return e
        }

        function l(e, n, a) {
          return n in e ? Object.defineProperty(e, n, {
            value: a,
            enumerable: !0,
            configurable: !0,
            writable: !0
          }) : e[n] = a, e
        }
        var c = {
          computed: r({}, (0, t.mapState)(["user", "common"])),
          data: function () {
            return {
              zuoshang:'',
              youshang:'',
              youxia:'',
              xia:'',
              tjid:'',
              qudao:'0',
              huodongid1:'',

              huodongid2:'',

              huodongid3:'',

              huodongid4:'',
              phone:'',
              pmodel:'',
              headerOpacity: 0,
              wanlsys: this.$wanlshop.wanlsys()
            }
          },
          onShow: function () {
            var n = this;
            setTimeout((function () {
              e.setNavigationBarColor({
                frontColor: n.$store.state.common.modulesData.homeModules.page ? n.$store.state.common.modulesData.homeModules.page.style.navigationBarTextStyle : "",
                backgroundColor: n.$store.state.common.modulesData.homeModules.page ? n.$store.state.common.modulesData.homeModules.page.style.navigationBarBackgroundColor : ""
              })
            }), 200)
          },

           onLoad: function (options) {
            var tjid= options.tjid;
            var that = this
            if(tjid){
              that.tjid = tjid

              wx.setStorage({
                key: 'tjid',
                data: tjid
               })
            }

            if(wx.getStorageSync("tjid")){
              that.tjid = wx.getStorageSync("tjid")
            }


            var qudao= options.qudao;

            if(qudao){
              that.qudao = qudao
              wx.setStorage({
                key: 'qudao',
                data: qudao
               })
            }

             wx.getSystemInfo({
               success(res) {
                that.pmodel = res.model

               }
             })
             wx.request({
              url: 'https://www.xiaoyudiyimei.cn/api/index/gethuodong',
              data: {

              },
              success:function(res){

                that.zuoshang = 'https://www.xiaoyudiyimei.cn/'+res.data.msg[0].image
                that.youshang = 'https://www.xiaoyudiyimei.cn/'+res.data.msg[2].image
                that.youxia = 'https://www.xiaoyudiyimei.cn/'+res.data.msg[1].image
                that.xia = 'https://www.xiaoyudiyimei.cn/'+res.data.msg[3].image


                that.huodongid1 = res.data.msg[0].id
                that.huodongid2 = res.data.msg[2].id
                that.huodongid3 = res.data.msg[1].id
                that.huodongid4 = res.data.msg[3].id


              }
            })




           if(wx.getStorageSync("wanlshop:user").isLogin){

            wx.request({
              url: 'https://www.xiaoyudiyimei.cn/api/index/tongji',
              data: {
                uid: wx.getStorageSync("wanlshop:user").id,
                xinghao:this.pmodel,
                tjid:this.tjid
              },
              success:function(res){

              }
            })
              }else{

            wx.login({
              success(res) {


                if (res.code) {

                  wx.request({
                    url: 'https://www.xiaoyudiyimei.cn/api/index/getopenid',
                    data: {
                      js_code: res.code
                    },
                    success:function(openid){
                      wx.setStorage({
                        key: 'openid',
                        data: openid.data.data,
                       })
                      wx.showModal({
                        title: "温馨提示",
                        content: "您尚未登录,为了您更好的医美体验,请在稍后的提示框中点击'确认授权'",
                        confirmText: "微信登录",
                        confirmColor: "#057639",
                        cancelText:'个人中心',
                        success: function(openid) {

                          if(openid.cancel){
                            wx.reLaunch({
                              url: "/pages/user/user"
                          })
                          }else if(openid.confirm){
                            wx.reLaunch({
                              url: "/pages/user/auth/perfect"
                          })
                          }

                        }
                    });

                    }
                  })
                } else {
                }
              }
            })
            }
                
        },

          onReady: function () {
            var n = this;
            e.getNetworkType({
              success: function (e) {
                "2g" == e.networkType || "3g" == e.networkType || "4g" == e.networkType ? n.$wanlshop.msg("当前使用非WIFI环境，请注意流量使用") : "none" == e.networkType && n.$wanlshop.msg("没有网络")
              }
            })
          },
          onPageScroll: function (e) {
            var n = 300;
            e.scrollTop = e.scrollTop > n ? 300 : e.scrollTop, this.headerOpacity = e.scrollTop * (1 / n)
          },
          methods: {



            gohuodong1: function (e) {

              this.$wanlshop.to("/pages/article/details?id="+this.huodongid1, "fade-in", 100)
            },

            gohuodong2: function (e) {

              this.$wanlshop.to("/pages/article/details?id="+this.huodongid2, "fade-in", 100)
            },

            gohuodong3: function (e) {

              this.$wanlshop.to("/pages/article/details?id="+this.huodongid3, "fade-in", 100)
            },

            gohuodong4: function (e) {

              this.$wanlshop.to("/pages/article/details?id="+this.huodongid4, "fade-in", 100)
            },

            productSearch: function (e) {
              this.$wanlshop.to("/pages/product/search?keywords=".concat(e), "fade-in", 100)
            },
            userUser: function () {
              e.switchTab({
                url: "/pages/user/user"
              })
            },
            userAuth: function () {
              this.$wanlshop.to("/pages/user/auth/auth?url=/pages/wanlshop/index")
            },
            scanCode: function () {
              var n = this;
              e.scanCode({
                success: function (e) {
                  var a = n.getUrlParam(e.result);
                  switch (a.QRtype) {
                    case "goods":
                      n.onGoods(a.id);
                      break;
                    case "ulike":
                      n.$wanlshop.to("/pages/find/details/details?id=".concat(a.id));
                      break;
                    case "user":
                      n.$wanlshop.to("/pages/user/info?id=".concat(a.id));
                      break;
                    case "category":
                      n.$wanlshop.on("/pages/product/category/category");
                      break;
                    case "page":
                      n.$wanlshop.to("/pages/page/index?id=".concat(a.id));
                      break;
                    case "shop":
                      n.onShop(a.id);
                      break;
                    case "live":
                      n.$wanlshop.auth("/pages/shop/live/live");
                      break;
                    case "chat":
                      n.toChat(a.id);
                      break
                  }
                }
              })
            },
            getUrlParam: function (e) {
              for (var n = {}, a = e.split("?")[1].split("&"), t = 0; t < a.length; t++) {
                var o = a[t].split("=");
                n[o[0]] = o[1]
              }
              return n
            }
          }
        };
        n.default = c
      }).call(this, a("543d")["default"])
    },
    6747: function (e, n, a) {
      "use strict";
      a.r(n);
      var t = a("30c0"),
        o = a.n(t);
      for (var r in t) "default" !== r && function (e) {
        a.d(n, e, (function () {
          return t[e]
        }))
      }(r);
      n["default"] = o.a
    },
    "796d": function (e, n, a) {
      "use strict";
      a.d(n, "b", (function () {
        return o
      })), a.d(n, "c", (function () {
        return r
      })), a.d(n, "a", (function () {
        return t
      }));
      var t = {
          wanlPageBanner: function () {
            return a.e("components/wanl-page-banner/wanl-page-banner").then(a.bind(null, "ea3f"))
          },
          wanlPageImage: function () {
            return a.e("components/wanl-page-image/wanl-page-image").then(a.bind(null, "7260"))
          },
          wanlPageAdvertBanner: function () {
            return a.e("components/wanl-page-advert-banner/wanl-page-advert-banner").then(a.bind(null, "ae71"))
          },
          wanlPageAdvertImage: function () {
            return a.e("components/wanl-page-advert-image/wanl-page-advert-image").then(a.bind(null, "d1d5"))
          },
          wanlPageVideo: function () {
            return a.e("components/wanl-page-video/wanl-page-video").then(a.bind(null, "c548"))
          },
          wanlPageMenu: function () {
            return a.e("components/wanl-page-menu/wanl-page-menu").then(a.bind(null, "4284"))
          },
          wanlPageNotice: function () {
            return a.e("components/wanl-page-notice/wanl-page-notice").then(a.bind(null, "c65c"))
          },
          wanlPageArticle: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-article/wanl-page-article")]).then(a.bind(null, "5ba8"))
          },
          wanlPageHeadlines: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-headlines/wanl-page-headlines")]).then(a.bind(null, "683d"))
          },
          wanlPageSearch: function () {
            return a.e("components/wanl-page-search/wanl-page-search").then(a.bind(null, "6c7d"))
          },
          wanlPageActivity: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-activity/wanl-page-activity")]).then(a.bind(null, "70aa"))
          },
          wanlPageCategoryTitle: function () {
            return a.e("components/wanl-page-category-title/wanl-page-category-title").then(a.bind(null, "5200"))
          },
          wanlPageClassify: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-classify/wanl-page-classify")]).then(a.bind(null, "d80b"))
          },
          wanlPageLikes: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-likes/wanl-page-likes")]).then(a.bind(null, "12fb"))
          },
          wanlPageGoods: function () {
            return Promise.all([a.e("common/vendor"), a.e("components/wanl-page-goods/wanl-page-goods")]).then(a.bind(null, "ca10"))
          },
          wanlPageBargain: function () {
            return a.e("components/wanl-page-bargain/wanl-page-bargain").then(a.bind(null, "dbb2"))
          },
          wanlPageSeckill: function () {
            return a.e("components/wanl-page-seckill/wanl-page-seckill").then(a.bind(null, "d5b7"))
          },
          wanlPageEmpty: function () {
            return a.e("components/wanl-page-empty/wanl-page-empty").then(a.bind(null, "3d95"))
          },
          wanlPageDivision: function () {
            return a.e("components/wanl-page-division/wanl-page-division").then(a.bind(null, "c202"))
          }
        },
        o = function () {
          var e = this,
            n = e.$createElement,
            a = (e._self._c, e.user.isLogin ? e.$wanlshop.oss(e.user.avatar, 32, 32, 2, "avatar") : null),

            t = e.user.isLogin ? null : e.$wanlshop.oss(e.user.avatar, 32, 32, 2, "avatar");
          e.$mp.data = Object.assign({}, {
            $root: {
              g0: a,
              g1: t
            }
          })

        },
        r = []
    },
    8354: function (e, n, a) {
      "use strict";
      var t = a("fc2c"),
        o = a.n(t);
      o.a
    },
    "87c4": function (e, n, a) {
      "use strict";
      (function (e) {
        a("77a0");
        t(a("66fd"));
        var n = t(a("f1e4"));

        function t(e) {
          return e && e.__esModule ? e : {
            default: e
          }
        }
        e(n.default)
      }).call(this, a("543d")["createPage"])
    },
    f1e4: function (e, n, a) {
      "use strict";
      a.r(n);
      var t = a("796d"),
        o = a("6747");
      for (var r in o) "default" !== r && function (e) {
        a.d(n, e, (function () {
          return o[e]
        }))
      }(r);
      a("8354");
      var l, c = a("f0c5"),
        i = Object(c["a"])(o["default"], t["b"], t["c"], !1, null, null, null, !1, t["a"], l);
      n["default"] = i.exports
    },
    fc2c: function (e, n, a) {}
  },
  [
    ["87c4", "common/runtime", "common/vendor"]
  ]
]);
